package com.ruleengine.instruction.impl;

import com.ruleengine.instruction.InstructionType;

public class GotoInstruction extends BaseInstruction {
    private int gotoOffset;
    
    public GotoInstruction() {
        super(InstructionType.GOTO);
    }
    
    public int getGotoOffset() {
        return gotoOffset;
    }

    public void setGotoOffset(int offset) {
        gotoOffset = offset;
    }

    @Override
    public String toString() {
        return "{" + super.toString() + "," + gotoOffset+"}";
    }

}
